package com.home.Entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="NHAPXUATNL")
public class NhapXuatNL {
	
	@Id
	@Column(name="NXN_MASO")
	private long maSo;
	@Column(name="NXN_NGAY")
	private Date ngay;
	@Column(name="NXN_SOLUONG")
	private int soLuong;
	@Column(name="NXN_DONGIA")
	private BigDecimal donGia;
	@Column(name="NXN_LOAI")
	private String loai;
	@Column(name="NXN_GHICHU")
	private String ghiChu;
	@ManyToOne
	@JoinColumn(name="NXN_NGUYENLIEU")
	private NguyenLieu nguyenLieu;
	public long getMaSo() {
		return maSo;
	}
	public void setMaSo(long maSo) {
		this.maSo = maSo;
	}
	public Date getNgay() {
		return ngay;
	}
	public void setNgay(Date ngay) {
		this.ngay = ngay;
	}
	public int getSoLuong() {
		return soLuong;
	}
	public void setSoLuong(int soLuong) {
		this.soLuong = soLuong;
	}
	public BigDecimal getDonGia() {
		return donGia;
	}
	public void setDonGia(BigDecimal donGia) {
		this.donGia = donGia;
	}
	public String getLoai() {
		return loai;
	}
	public void setLoai(String loai) {
		this.loai = loai;
	}
	public String getGhiChu() {
		return ghiChu;
	}
	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}
	public NguyenLieu getNguyenLieu() {
		return nguyenLieu;
	}
	public void setNguyenLieu(NguyenLieu nguyenLieu) {
		this.nguyenLieu = nguyenLieu;
	}
	
	
}
